package com.ruoyi.webServiceUtil;

/*     */

import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

import javax.xml.namespace.QName;
import java.io.Serializable;

/*     */
/*     */
/*     */ public class WSContext
        /*     */   implements Serializable
        /*     */ {
    /*     */   private int dbType;
    /*     */   private String dcName;
    /*     */   private String password;
    /*     */   private String sessionId;
    /*     */   private String slnName;
    /*     */   private String userName;
    /*     */   public int getDbType()
    /*     */   {
        /*  25 */     return this.dbType;
        /*     */   }
    /*     */
    /*     */   public void setDbType(int dbType) {
        /*  29 */     this.dbType = dbType;
        /*     */   }
    /*     */
    /*     */   public String getDcName() {
        /*  33 */     return this.dcName;
        /*     */   }
    /*     */
    /*     */   public void setDcName(String dcName) {
        /*  37 */     this.dcName = dcName;
        /*     */   }
    /*     */
    /*     */   public String getPassword() {
        /*  41 */     return this.password;
        /*     */   }
    /*     */
    /*     */   public void setPassword(String password) {
        /*  45 */     this.password = password;
        /*     */   }
    /*     */
    /*     */   public String getSessionId() {
        /*  49 */     return this.sessionId;
        /*     */   }
    /*     */
    /*     */   public void setSessionId(String sessionId) {
        /*  53 */     this.sessionId = sessionId;
        /*     */   }
    /*     */
    /*     */   public String getSlnName() {
        /*  57 */     return this.slnName;
        /*     */   }
    /*     */
    /*     */   public void setSlnName(String slnName) {
        /*  61 */     this.slnName = slnName;
        /*     */   }
    /*     */
    /*     */   public String getUserName() {
        /*  65 */     return this.userName;
        /*     */   }
    /*     */
    /*     */   public void setUserName(String userName) {
        /*  69 */     this.userName = userName;
        /*     */   }
    /*     */
    /*  72 */   private Object __equalsCalc = null;
    /*     */   public synchronized boolean equals(Object obj)/*     */   {
        /*  74 */     if (!(obj instanceof WSContext)) return false;
        /*  75 */     WSContext other = (WSContext)obj;
        /*  76 */     if (obj == null) return false;
        /*  77 */     if (this == obj) return true;
        /*  78 */     if (this.__equalsCalc != null) {
            /*  79 */       return (this.__equalsCalc == obj);
            /*     */     }
        /*  81 */     this.__equalsCalc = obj;
        /*     */
        /*  83 */     boolean _equals = (this.dbType == other.getDbType()) && ((((this.dcName == null) && (other.getDcName() == null)) || ((this.dcName != null) && (this.dcName.equals(other.getDcName())) && ((((this.password == null) && (other.getPassword() == null)) || ((this.password != null) && (this.password.equals(other.getPassword())) && ((((this.sessionId == null) && (other.getSessionId() == null)) || ((this.sessionId != null) && (this.sessionId.equals(other.getSessionId())) && ((((this.slnName == null) && (other.getSlnName() == null)) || ((this.slnName != null) && (this.slnName.equals(other.getSlnName())) && ((((this.userName == null) && (other.getUserName() == null)) || ((this.userName != null) && (this.userName.equals(other.getUserName())))))))))))))))));
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /*     */
        /* 100 */     this.__equalsCalc = null;
        /* 101 */     return _equals;
        /*     */   }
    /*     */
    /* 104 */   private boolean __hashCodeCalc = false;
    /*     */   public synchronized int hashCode()/*     */   {
        /* 106 */     if (this.__hashCodeCalc) {
            /* 107 */       return 0;
            /*     */     }
        /* 109 */     this.__hashCodeCalc = true;
        /* 110 */     int _hashCode = 1;
        /* 111 */     _hashCode += getDbType();
        /* 112 */     if (getDcName() != null) {
            /* 113 */       _hashCode += getDcName().hashCode();
            /*     */     }
        /* 115 */     if (getPassword() != null) {
            /* 116 */       _hashCode += getPassword().hashCode();
            /*     */     }
        /* 118 */     if (getSessionId() != null) {
            /* 119 */       _hashCode += getSessionId().hashCode();
            /*     */     }
        /* 121 */     if (getSlnName() != null) {
            /* 122 */       _hashCode += getSlnName().hashCode();
            /*     */     }
        /* 124 */     if (getUserName() != null) {
            /* 125 */       _hashCode += getUserName().hashCode();
            /*     */     }
        /* 127 */     this.__hashCodeCalc = false;
        /* 128 */     return _hashCode;
        /*     */   }
    /*     */
    /*     */
    /* 132 */   private static TypeDesc typeDesc = new TypeDesc(WSContext.class);
    /*     */
    /*     */   static
        /*     */   {
        /* 136 */     typeDesc.setXmlType(new QName("urn:client", "WSContext"));
        /* 137 */     ElementDesc elemField = new ElementDesc();
        /* 138 */     elemField.setFieldName("dbType");
        /* 139 */     elemField.setXmlName(new QName("", "dbType"));
        /* 140 */     elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
        /* 141 */     typeDesc.addFieldDesc(elemField);
        /* 142 */     elemField = new ElementDesc();
        /* 143 */     elemField.setFieldName("dcName");
        /* 144 */     elemField.setXmlName(new QName("", "dcName"));
        /* 145 */     elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
        /* 146 */     typeDesc.addFieldDesc(elemField);
        /* 147 */     elemField = new ElementDesc();
        /* 148 */     elemField.setFieldName("password");
        /* 149 */     elemField.setXmlName(new QName("", "password"));
        /* 150 */     elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
        /* 151 */     typeDesc.addFieldDesc(elemField);
        /* 152 */     elemField = new ElementDesc();
        /* 153 */     elemField.setFieldName("sessionId");
        /* 154 */     elemField.setXmlName(new QName("", "sessionId"));
        /* 155 */     elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
        /* 156 */     typeDesc.addFieldDesc(elemField);
        /* 157 */     elemField = new ElementDesc();
        /* 158 */     elemField.setFieldName("slnName");
        /* 159 */     elemField.setXmlName(new QName("", "slnName"));
        /* 160 */     elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
        /* 161 */     typeDesc.addFieldDesc(elemField);
        /* 162 */     elemField = new ElementDesc();
        /* 163 */     elemField.setFieldName("userName");
        /* 164 */     elemField.setXmlName(new QName("", "userName"));
        /* 165 */     elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
        /* 166 */     typeDesc.addFieldDesc(elemField);
        /*     */   }
    /*     */
    /*     */
    /*     */
    /*     */   public static TypeDesc getTypeDesc()
    /*     */   {
        /* 173 */     return typeDesc;
        /*     */   }
    /*     */
    /*     */
    /*     */
    /*     */
    /*     */
    /*     */
    /*     */   public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
    /*     */   {
        /* 183 */     return new BeanSerializer(_javaType, _xmlType, typeDesc);
        /*     */   }
    /*     */
    /*     */
    /*     */
    /*     */
    /*     */
    /*     */
    /*     */
    /*     */
    /*     */   public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
    /*     */   {
        /* 195 */     return new BeanDeserializer(_javaType, _xmlType, typeDesc);
        /*     */   }
    /*     */ }
